/**
 * 顶部状态量 + 顶部导航栏高度获取
 */
export default {
  data() {
    return {
      navbarHeight: Number
    }
  },
  onReady() {
    // #navbar为NavBar组件设置的id
    let info = uni.createSelectorQuery().select('#navbar');
    
    info.boundingClientRect((data) => {
        this.navbarHeight = data.height
    }).exec();
  }
}
